package com.ccom.starter.cloud.config;

import feign.Feign;

/**
 * @Description 为指定客户端禁用Hystrix
 * <p>
 * 在指定的Feign中@FeignClient(name="XXX",configuration=FeignDisableHystrixConfiguration.class)
 * 也可以禁用全局Hystirx,只需要在配置文件中配置feign.hystrix.enabled=false
 * 引入sentinel后SentinelFeignAutoConfiguration一样
 * @Author zjj
 * @Date 2021/8/21
 */
public class FeignDisableHystrixConfiguration {

    public Feign.Builder feignBuilder() {
        return Feign.builder();
    }

}
